-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(protocol-designer): fix long step name, step details, and step summary layout issue #16547
Conversation
@@ -209,8 +210,8 @@ export function StepFormToolbox(props: StepFormToolboxProps): JSX.Element { | |||
height="calc(100vh - 64px)" | |||
title={ | |||
<Flex gridGap={SPACING.spacing8} alignItems={ALIGN_CENTER}> | |||
<Icon size="1rem" name={icon} /> | |||
<StyledText desktopStyle="bodyLargeSemiBold"> | |||
<Icon size="1rem" name={icon} style={{ flexShrink: 0 }} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I tested on https://sandbox.designer.opentrons.com/protocol_designer-fix-step-name/#/overview the text didn't wrap on the step.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohh didn't take that into consideration, i'll work on fixing that as well! thanks for the catch, alex.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll change it to use minWidth
, it looks cleaner to me. thanks, koji
@syao1226 I just merged my PR that includes line clamp style in atoms into edge. import |
desktopStyle="bodyLargeSemiBold" | ||
css={` | ||
${LINE_CLAMP_TEXT_STYLE(2)} | ||
word-break: break-all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
word-wrap: break-word;
didn't work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
fixes RQA-3355
Overview
Fixing layout issues in
StepFormToolbox
,StepContainer
, andStepSummary
when step names, step details, and step summaries are too long, causing the step icon to shrink, the step name and step summaries content to go off-screen, and the step details text to exceed the window size.Refer to the ticket for details on the current layout issues and the expected design.
Test Plan and Hands on Testing
Changelog
Review requests
Risk assessment